from django.test import TestCase

from apps.fontend.models import Classify


class CreateTest(TestCase):
    def test_classify(self):
        datas = [
            Classify(name="找人代买",
                     icon="https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/static/classify/%E4%BB%A3%E4%B9%B0.png",
                     page="pages/none"),
            Classify(name="外卖代取",
                     icon="https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/static/classify/%E5%A4%96%E5%8D%96.png",
                     page="pages/none"),
            Classify(name="找人陪跑",
                     icon="https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/static/classify/%E8%B7%91%E6%AD%A5.png",
                     page="pages/none"),
            Classify(name="找人代办",
                     icon="https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/static/classify/%E4%BB%A3%E5%8A%9E.png",
                     page="pages/none"),
            Classify(name="快递代取",
                     icon="https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/static/classify/%E5%BF%AB%E9%80%92.png",
                     page="pages/none"),
        ]
        Classify.objects.bulk_create(datas)
